﻿using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Rendering;

namespace ChildPhotosManager.Core.Dtos;

public class UploadViewModel
{
    [Required(ErrorMessage = "请选择图片文件")]
    [Display(Name = "图片文件")]
    public IFormFile? File { get; set; }

    [Display(Name = "照片描述")]
    public string? Description { get; set; }

    [Display(Name = "手动分类")]
    public string? Category { get; set; }

    // 分类下拉选项
    public List<SelectListItem> CategoryOptions { get; set; } = new List<SelectListItem>
    {
        new SelectListItem { Text = "户外时光", Value = "户外时光" },
        new SelectListItem { Text = "生日派对", Value = "生日派对" },
        new SelectListItem { Text = "居家日常", Value = "居家日常" },
        new SelectListItem { Text = "亲子互动", Value = "亲子互动" },
        new SelectListItem { Text = "成长记录", Value = "成长记录" }
    };
}